package com.djmw.mouse.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.djmw.mouse.entity.HrUser;

public interface HrUserDao extends PagingAndSortingRepository<HrUser, Long>, JpaSpecificationExecutor<HrUser> {
	HrUser findByLoginName(String loginName);

	Page<HrUser> findByCompanyId(Long id, Pageable pageRequest);
}
